<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>float作用机制</title>
    <style>
        div{
            width:200px;
        }
        .father{
            background-color: #cad53d;
            border:1px solid black;
        }
        img{
            width:60px;
            height:60px;
        }
        .float {
            float:left;
        }
    </style>
</head>
<body>
<div class="father">
    <div class="float">
        <img src="../80页之前代码测试/0.jpg" width="50" height="50"/>
    </div>
</div>
<div class="c">小狗小狗小狗小狗小狗小狗小狗小狗小狗小狗小狗小狗小狗小狗</div>
</body>
</html>